package com.aaa.service.impl;
import com.aaa.dao.DocheckDao;
import com.aaa.service.DocheckService;
import com.aaa.vo.DocheckVo;
import com.aaa.entity.CareOrderItem;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;


@Service
public class DecheckServiceImpl implements DocheckService {

    @Autowired
    private DocheckDao docheckDao;


    @Override
    public Result<List<CareOrderItem>> findAll(DocheckVo docheckVo) {
            List checkItem = docheckVo.getCheckItem();
            String regId = docheckVo.getRegId();
            List<CareOrderItem> careOrderItems = docheckDao.findAll(checkItem,regId);
        return new Result<>(200,"结果查询",careOrderItems);




    }
}
